<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      >
	<ui:composition template="/WEB-INF/templates/template.jsf">
		<ui:define name="content">
			<ui:repeat var="scat" value="#{ layout.getSouscategory(param['id']) }" rendered="#{param.containsKey('id') and param['id'] != null}">
				<figure>
					<h:link outcome="souscategory">
						<f:param name="id" value="#{scat.id }" />
						<h:graphicImage url="/resources/default/img/sous_categorie/#{scat.nom}.png" />
					</h:link>
					<figcaption>
						<h:link outcome="subcategory" value="#{scat.nom}">
							 <f:param name="id" value="#{scat.id }" />
						</h:link>
					</figcaption>
				</figure>
			</ui:repeat>
		</ui:define>
	</ui:composition>
</html>